package com.atguigu.multiReading;
public class demo7 extends Thread{
    private static int count=0;

    public static void main(String[] args) {
        demo7 t1=new demo7();
        demo7 t2=new demo7();
        t1.start();
        t2.start();
    }

    @Override
    public void run() {
        synchronized (this){
            for(int i=0;i<10000;i++) {
                count++;
            }
        }
    }
}
